package com.qili.service.exam.impl;

import com.qili.base.mapper.BaseMapper;
import com.qili.base.service.impl.BaseServiceImpl;
import com.qili.entity.exam.ExExamExportModel;
import com.qili.entity.exam.ExStuExamCopy;
import com.qili.entity.exam.ExUserExportModel;
import com.qili.entity.exam.dto.ExStuExamCopyDTO;
import com.qili.mapper.exam.ExStuExamCopyMapper;
import com.qili.service.exam.ExamStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zengyuli
 * @date 2021/9/1
 * @description
 */
@Service
public class ExamStatisticsServiceImpl extends BaseServiceImpl<ExStuExamCopy,String> implements ExamStatisticsService {
    @Autowired
    ExStuExamCopyMapper exStuExamCopyMapper;

    @Override
    public BaseMapper<ExStuExamCopy, String> getMappser() {
        return exStuExamCopyMapper;
    }
    @Override
    public List<ExStuExamCopyDTO> selectExamList(ExStuExamCopyDTO examCopy) {
        return exStuExamCopyMapper.selectExamList(examCopy);
    }

    @Override
    public List<ExExamExportModel> getAnswerCountList(ExStuExamCopyDTO exStuExamCopyDTO) {
        return exStuExamCopyMapper.getAnswerCountList(exStuExamCopyDTO);
    }

    @Override
    public List<ExUserExportModel> getUserExamCountList(ExStuExamCopyDTO exStuExamCopyDTO) {
        return exStuExamCopyMapper.getUserExamCountList(exStuExamCopyDTO);
    }

}
